package com.emr.module.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.emr.module.mapper.GuanchajlMapper;
import com.emr.module.domain.Guanchajl;
import com.emr.module.service.IGuanchajlService;
import com.emr.common.support.Convert;

/**
 * 观察记录 服务层实现
 * 
 * @author emr
 * @date 2019-02-21
 */
@Service
public class GuanchajlServiceImpl implements IGuanchajlService 
{
	@Autowired
	private GuanchajlMapper guanchajlMapper;

	/**
     * 查询观察记录信息
     * 
     * @param id 观察记录ID
     * @return 观察记录信息
     */
    @Override
	public Guanchajl selectGuanchajlById(Integer id)
	{
	    return guanchajlMapper.selectGuanchajlById(id);
	}
	
	/**
     * 查询观察记录列表
     * 
     * @param guanchajl 观察记录信息
     * @return 观察记录集合
     */
	@Override
	public List<Guanchajl> selectGuanchajlList(Guanchajl guanchajl)
	{
	    return guanchajlMapper.selectGuanchajlList(guanchajl);
	}
	
    /**
     * 新增观察记录
     * 
     * @param guanchajl 观察记录信息
     * @return 结果
     */
	@Override
	public int insertGuanchajl(Guanchajl guanchajl)
	{
	    return guanchajlMapper.insertGuanchajl(guanchajl);
	}
	
	/**
     * 修改观察记录
     * 
     * @param guanchajl 观察记录信息
     * @return 结果
     */
	@Override
	public int updateGuanchajl(Guanchajl guanchajl)
	{
	    return guanchajlMapper.updateGuanchajl(guanchajl);
	}

	/**
     * 删除观察记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGuanchajlByIds(String ids)
	{
		return guanchajlMapper.deleteGuanchajlByIds(Convert.toStrArray(ids));
	}
	
}
